<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>RX Built-in Functions (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="RX Built-in Functions (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="RX Built-in Functions (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Target-Builtins.html" rel="up" title="Target Builtins">
<link href="S_002f390-System-z-Built_002din-Functions.html" rel="next" title="S/390 System z Built-in Functions">
<link href="RISC_002dV-Vector-Intrinsics.html" rel="prev" title="RISC-V Vector Intrinsics">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
-->
</style>


</head>

<body lang="en_US">
<div class="subsection-level-extent" id="RX-Built_002din-Functions">
<div class="nav-panel">
<p>
Next: <a href="S_002f390-System-z-Built_002din-Functions.html" accesskey="n" rel="next">S/390 System z Built-in Functions</a>, Previous: <a href="RISC_002dV-Vector-Intrinsics.html" accesskey="p" rel="prev">RISC-V Vector Intrinsics</a>, Up: <a href="Target-Builtins.html" accesskey="u" rel="up">Built-in Functions Specific to Particular Target Machines</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="RX-Built_002din-Functions-1"><span>6.60.30 RX Built-in Functions<a class="copiable-link" href="#RX-Built_002din-Functions-1"> &para;</a></span></h4>
<p>GCC supports some of the RX instructions which cannot be expressed in
the C programming language via the use of built-in functions.  The
following functions are supported:
</p>
<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fbrk"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_brk</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fbrk"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">brk</code> machine instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fclrpsw"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_clrpsw</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fclrpsw"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">clrpsw</code> machine instruction to clear the specified
bit in the processor status word.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fint"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_int</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fint"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">int</code> machine instruction to generate an interrupt
with the specified value.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmachi"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_machi</strong> <code class="def-code-arguments">(int, int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmachi"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">machi</code> machine instruction to add the result of
multiplying the top 16 bits of the two arguments into the
accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmaclo"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_maclo</strong> <code class="def-code-arguments">(int, int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmaclo"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">maclo</code> machine instruction to add the result of
multiplying the bottom 16 bits of the two arguments into the
accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmulhi"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mulhi</strong> <code class="def-code-arguments">(int, int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmulhi"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mulhi</code> machine instruction to place the result of
multiplying the top 16 bits of the two arguments into the
accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmullo"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mullo</strong> <code class="def-code-arguments">(int, int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmullo"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mullo</code> machine instruction to place the result of
multiplying the bottom 16 bits of the two arguments into the
accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvfachi"><span class="category-def">Built-in Function: </span><span><code class="def-type">int</code> <strong class="def-name">__builtin_rx_mvfachi</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvfachi"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvfachi</code> machine instruction to read the top
32 bits of the accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvfacmi"><span class="category-def">Built-in Function: </span><span><code class="def-type">int</code> <strong class="def-name">__builtin_rx_mvfacmi</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvfacmi"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvfacmi</code> machine instruction to read the middle
32 bits of the accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvfc"><span class="category-def">Built-in Function: </span><span><code class="def-type">int</code> <strong class="def-name">__builtin_rx_mvfc</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvfc"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvfc</code> machine instruction which reads the control
register specified in its argument and returns its value.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvtachi"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mvtachi</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvtachi"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvtachi</code> machine instruction to set the top
32 bits of the accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvtaclo"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mvtaclo</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvtaclo"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvtaclo</code> machine instruction to set the bottom
32 bits of the accumulator.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvtc"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mvtc</strong> <code class="def-code-arguments">(int <var class="var">reg</var>, int <var class="var">val</var>)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvtc"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvtc</code> machine instruction which sets control
register number <code class="code">reg</code> to <code class="code">val</code>.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fmvtipl"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_mvtipl</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fmvtipl"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">mvtipl</code> machine instruction set the interrupt
priority level.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fracw"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_racw</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fracw"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">racw</code> machine instruction to round the accumulator
according to the specified mode.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005frevw"><span class="category-def">Built-in Function: </span><span><code class="def-type">int</code> <strong class="def-name">__builtin_rx_revw</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005frevw"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">revw</code> machine instruction which swaps the bytes in
the argument so that bits 0&ndash;7 now occupy bits 8&ndash;15 and vice versa,
and also bits 16&ndash;23 occupy bits 24&ndash;31 and vice versa.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005frmpa"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_rmpa</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005frmpa"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">rmpa</code> machine instruction which initiates a
repeated multiply and accumulate sequence.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fround"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_round</strong> <code class="def-code-arguments">(float)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fround"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">round</code> machine instruction which returns the
floating-point argument rounded according to the current rounding mode
set in the floating-point status word register.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fsat"><span class="category-def">Built-in Function: </span><span><code class="def-type">int</code> <strong class="def-name">__builtin_rx_sat</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fsat"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">sat</code> machine instruction which returns the
saturated value of the argument.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fsetpsw"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_setpsw</strong> <code class="def-code-arguments">(int)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fsetpsw"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">setpsw</code> machine instruction to set the specified
bit in the processor status word.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005frx_005fwait"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">__builtin_rx_wait</strong> <code class="def-code-arguments">(void)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005frx_005fwait"> &para;</a></span></dt>
<dd><p>Generates the <code class="code">wait</code> machine instruction.
</p></dd></dl>

</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="S_002f390-System-z-Built_002din-Functions.html">S/390 System z Built-in Functions</a>, Previous: <a href="RISC_002dV-Vector-Intrinsics.html">RISC-V Vector Intrinsics</a>, Up: <a href="Target-Builtins.html">Built-in Functions Specific to Particular Target Machines</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
